<?php

namespace app\common\model;

class AdminMenuModel extends CommonBaseModel
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'admin_menu';

    public static function getAllOpenMenus()
    {
        return self::where('status', 1)->order('sort,pid,id')->selectArray();
    }
}
